package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
//攻略的具体区域
public class SpecificArea {
    private Long strategyId;//大攻略id
    private String strategyTitle;//大攻略标题
    private Long regionId;//具体区域的id
    private String regionName;//具体区域名称
    public String getJson(){
        Map<String,Object> map = new HashMap<>();
        map.put("strategyId",strategyId);
        map.put("strategyTitle",strategyTitle);
        map.put("regionId",regionId);
        map.put("regionName",regionName);
        return JSONUtil.toJSONString(map);
    }
}